package com.huc.netty.core;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author huc
 * @version 1.0
 * @note 请求头部
 * @date 2021/9/16 9:54
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Header implements Serializable {
    private short magic; //魔数 2字节
    private byte serialType; //序列化类型  1个字节
    private byte reqType; //消息类型  1个字节
    private long requestId; //请求id  8个字节
    private int length;//消息体长度，4个字节
}
